package View;

import java.util.Scanner;

import Controller.MakeMoveController;
import Main.main;
import Model.game;

public class GUI {
	
	//variables
	
	game g;
	Scanner sc;
	
	public GUI(game g){
		this.g=g;
		
	}
	public void PlayGame(){
		
		
		Scanner sc= new Scanner(System.in);
		System.out.println("Play Game? Enter y to play or enter n to quit");
		char answer=sc.next().charAt(0);
		if(answer=='y'){
			//play game
			game g = new game();
			System.out.println("New Game created");
			
			while(true){
				g.printBoard();
				new MakeMoveController(GUI.this, g, sc).process();
			}
		}else{
			//do nothing
			
			
		}
		
		
	}
	
}
